package com.android.juguotang.model.group;

import android.app.Activity;
import android.os.Bundle;

import com.android.juguotang.model.addtocartdata;
import com.android.juguotang.model.data;
import com.android.juguotang.utils.MyLog;
import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

public abstract class addtocartCallback extends Callback<addtocartdata> {

    @Override
    public addtocartdata parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
//        MyLog.e("inest","addtocart="+string);
        addtocartdata data = new Gson().fromJson(string, addtocartdata.class);
        return data;
    }
}